package org.mysocial.datamodel;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * @author ivan
 * @version 1.0
 * @created 21-Jul-2011 10:00:29 PM
 */
@Entity
public class Comment extends Reply
{
	private String text;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "post_fk")
	private Post post;

	public Post getPost()
	{
		return post;
	}

	public String getText()
	{
		return text;
	}

	public void setPost(Post post)
	{
		this.post = post;
	}

	public void setText(String text)
	{
		this.text = text;
	}
}